int fun1(unsigned word){
	return (int) ((word<<24)>>24);
}

int fun2(unsigned word){
        return ((int)word<<24)>>24;
}

int main(){
	int a,b,c;
	scanf("%x %x %x",&a,&b,&c);
	printf("a:  %x        %x\n",fun1(a),fun1(a));
	printf("b:  %x        %x\n",fun1(b),fun2(b));
	printf("c:  %x        %x\n",fun1(c),fun2(c));
}

